package indi.zhifa.study2025.class004.imgserv.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.engine.core.common.ann.enums.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "图片源类型",defaultIdx = 1)
public enum ESourceType {
    OUTER_URL(1,"url","通过url上传"),
    BYTE(2,"文件本地上传","通过文件本地上传");

    @EnumValue
    @Getter
    private final int code;
    @Getter
    private final String name;
    @Getter
    private final String description;
}
